import java.util.*;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: xiaotutu
 * Date: 2024-12-25
 * Time: 20:50
 */
public class Test2 {
    public static void main(String[] args) {
        char[] ch = new char[]{'a', 'b', 'c'};
        String s1 = new String(ch);
        s1.intern();
        String s2 = "abc";
        System.out.println(s1 == s2);
    }

    public static void main2(String[] args) {
        Map<String,Integer> map1 = new HashMap<>(1000);//1024
        map1.put("hello",2);
        System.out.println(map1);

    }

    public static void main1(String[] args) {
        Map<String,Integer> map1 = new HashMap<>();
        Map<String,Integer> map2 = new TreeMap<>();

        Set<String> set1 = new HashSet<>();
        Set<String> set2 = new TreeSet<>();

    }
}
